package com.lst.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.MessageMapper;
import com.lst.model.Message;
import com.lst.service.MessageService;


/**
 * @ClassName: MessageServiceImpl
 * @Description: 消息实现类层
 * 
 */
@Service("MessageService")
public class MessageServiceImpl implements MessageService {
	
	@Autowired
	private MessageMapper dao;

	@Override
	public int insert(Message record) {
		
		return dao.insert(record);
	}

	@Override
	public List<Message> queryByMap(Map<String, Object> map, PageBounds pageBounds) {
		
		return dao.queryByMap(map, pageBounds);
	}

	@Override
	public List<Message> queryByMap2(Map<String, Object> map, PageBounds pageBounds) {
		
		return dao.queryByMap2(map, pageBounds);
	}

	@Override
	public int update(int id) {
		
		return dao.update(id);
	}





}
